struct appdata //allvarligt. det här får mig att hata.
{
	float4 color	: COLOR0;
	float2 tex		: texcoord;
	float timer;
};

struct vfconn
{
	float4 color	: COLOR0;
};


vfconn main(appdata IN,uniform sampler2D decal) {
	vfconn OUT;
	float i;

	float4 final = tex2D(decal,IN.tex);
	float4 north = tex2D(decal,IN.tex + float2(0,1));
	float4 south = tex2D(decal,IN.tex + float2(0,-1));
	float4 east = tex2D(decal, IN.tex + float2(1,0));
	float4 west = tex2D(decal,IN.tex + float2(-1,0));
	
	north *= float4(0,1,0,1);
	south *= float4(0,1,0,1);
	
	final += (north/2) + (south/2) + (west/2) + (east/2);
//	final += (north/4) + (south/4) + (west/4) + (east/4);
//	final += (north/8) + (south/8) + (west/8) + (east/8);
	
	
	OUT.color = final;
	return OUT;
}